Constify arguments to unmap_domain_page() etc.
authorKeir Fraser <keir.fraser@citrix.com>
Mon, 27 Oct 2008 13:27:33 +0000 (13:27 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Mon, 27 Oct 2008 13:27:33 +0000 (13:27 +0000)
Signed-off-by: Jan Beulich <jbeulich@novell.com>
xen/arch/x86/x86_32/domain_page.c
xen/include/xen/domain_page.h

index 2fe2e562c44f84018e125a6d02a70d58daeee2b4..516a630af517c338982ca961a822e33aecb516b5 100644 (file)
@@ -114,7 +114,7 @@ void *map_domain_page(unsigned long mfn)
     return (void *)va;
 }
 
-void unmap_domain_page(void *va)
+void unmap_domain_page(const void *va)
 {
     unsigned int idx;
     struct vcpu *v;
@@ -241,7 +241,7 @@ void *map_domain_page_global(unsigned long mfn)
     return (void *)va;
 }
 
-void unmap_domain_page_global(void *va)
+void unmap_domain_page_global(const void *va)
 {
     unsigned long __va = (unsigned long)va;
     l2_pgentry_t *pl2e;
index cd2226678b5777d904b69c4ef33e62c0d90ab2be..5240179cf0b3c97506964fb43d7558e641a60367 100644 (file)
@@ -24,7 +24,7 @@ void *map_domain_page(unsigned long mfn);
  * Pass a VA within a page previously mapped in the context of the
  * currently-executing VCPU via a call to map_domain_page().
  */
-void unmap_domain_page(void *va);
+void unmap_domain_page(const void *va);
 
 /*
  * Similar to the above calls, except the mapping is accessible in all
@@ -32,7 +32,7 @@ void unmap_domain_page(void *va);
  * mappings can also be unmapped from any context.
  */
 void *map_domain_page_global(unsigned long mfn);
-void unmap_domain_page_global(void *va);
+void unmap_domain_page_global(const void *va);
 
 #define DMCACHE_ENTRY_VALID 1U
 #define DMCACHE_ENTRY_HELD  2U
@@ -75,7 +75,7 @@ map_domain_page_with_cache(unsigned long mfn, struct domain_mmap_cache *cache)
 }
 
 static inline void
-unmap_domain_page_with_cache(void *va, struct domain_mmap_cache *cache)
+unmap_domain_page_with_cache(const void *va, struct domain_mmap_cache *cache)
 {
     ASSERT(cache != NULL);
     cache->flags &= ~DMCACHE_ENTRY_HELD;